Image Comparison
AutomatR.DefaultActivities.ImageProcessing.ImageComparison
The "Image Comparison" activity in AutomatR, categorized under ImageProcessing, provides the capability to compare two different images and outputs the result as a matching percentage. This activity is particularly useful for automating workflows that involve visual verification or validation based on image content.
Properties
Name | Description |
---|---|
Input | |
First Image File | Specifies the path or allows browsing to select the first image file for the comparison. String variables containing the file path of the first image. |
Second Image File | Specifies the path or allows browsing to select the second image file for the comparison. String variables containing the file path of the second image. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Image Comparison" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the result of the matching percentage as a string variable. String variables to store the matching percentage result. |
How to use:
- Drag and drop the "Image Comparison" activity onto the workflow.
- Configure the properties by specifying the paths of the first and second images for comparison.
- Optionally, configure the delay based on your requirements.
- Execute the workflow to compare the specified images, and the matching percentage result will be stored in the output variable.
Example: Consider an example where the "Image Comparison" activity is used to compare two images:
Image Comparison:
First Image File: "C:\Images\Image1.png"
Second Image File: "C:\Images\Image2.png"
Result: matchingPercentage
In this example, the activity compares "Image1.png" and "Image2.png" and stores the matching percentage result in the string variable "matchingPercentage" for further use in the workflow.